/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nl.maxato.domain;

/**
 *
 * @author Fam Gloudemans
 */
public class Club {

    String teamId;
    String teamName;
    String owner;
    String founded;
    String arenaId;
    String leagueId;
    String nationId;
    String regionId;

    public Club(String teamId, String teamName, String owner, String founded, String arenaId, String leagueId, String nationId, String regionId) {
        this.teamId = teamId;
        this.teamName = teamName;
        this.owner = owner;
        this.founded = founded;
        this.arenaId = arenaId;
        this.leagueId = leagueId;
        this.nationId = nationId;
        this.regionId = regionId;
    }

    public String getArenaId() {
        return arenaId;
    }

    public void setArenaId(String arenaId) {
        this.arenaId = arenaId;
    }

    public String getFounded() {
        return founded;
    }

    public void setFounded(String founded) {
        this.founded = founded;
    }

    public String getLeagueId() {
        return leagueId;
    }

    public void setLeagueId(String leagueId) {
        this.leagueId = leagueId;
    }

    public String getNationId() {
        return nationId;
    }

    public void setNationId(String nationId) {
        this.nationId = nationId;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getTeamId() {
        return teamId;
    }

    public void setTeamId(String teamId) {
        this.teamId = teamId;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

public String dateToString(){
    String year = founded.substring(0, 4);
    String month = founded.substring(5, 7);
    String day = founded.substring(8, 10);
    return day+"/"+month+"/"+year;
}

}
